package com.medsci.yxdplus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 销售表
 * </p>
 *
 * @author wenjoying@126.com
 * @since 2019-09-24
 */
@ApiModel(value="Users对象", description="销售表")
public class Users implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "登录名")
    private String name;

    @ApiModelProperty(value = "销售姓名")
    private String truename;

    @ApiModelProperty(value = "销售邮箱")
    private String email;

    @ApiModelProperty(value = "销售手机")
    private String mobile;

    @ApiModelProperty(value = "销售密码")
    private String password;

    private String officeArea;

    @ApiModelProperty(value = "销售座机")
    private String saleTel;

    @ApiModelProperty(value = "erp用户uuid")
    private String erpUuid;

    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    private LocalDateTime deletedAt;

    @ApiModelProperty(value = "最后一次登录状态")
    private LocalDateTime lastLoginAt;

    private String verificationToken;

    private LocalDateTime verificationTokenExpire;

    @ApiModelProperty(value = "状态")
    private String state;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTruename() {
        return truename;
    }

    public void setTruename(String truename) {
        this.truename = truename;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getOfficeArea() {
        return officeArea;
    }

    public void setOfficeArea(String officeArea) {
        this.officeArea = officeArea;
    }

    public String getSaleTel() {
        return saleTel;
    }

    public void setSaleTel(String saleTel) {
        this.saleTel = saleTel;
    }

    public String getErpUuid() {
        return erpUuid;
    }

    public void setErpUuid(String erpUuid) {
        this.erpUuid = erpUuid;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public LocalDateTime getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(LocalDateTime deletedAt) {
        this.deletedAt = deletedAt;
    }

    public LocalDateTime getLastLoginAt() {
        return lastLoginAt;
    }

    public void setLastLoginAt(LocalDateTime lastLoginAt) {
        this.lastLoginAt = lastLoginAt;
    }

    public String getVerificationToken() {
        return verificationToken;
    }

    public void setVerificationToken(String verificationToken) {
        this.verificationToken = verificationToken;
    }

    public LocalDateTime getVerificationTokenExpire() {
        return verificationTokenExpire;
    }

    public void setVerificationTokenExpire(LocalDateTime verificationTokenExpire) {
        this.verificationTokenExpire = verificationTokenExpire;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Users{" +
        "id=" + id +
        ", name=" + name +
        ", truename=" + truename +
        ", email=" + email +
        ", mobile=" + mobile +
        ", password=" + password +
        ", officeArea=" + officeArea +
        ", saleTel=" + saleTel +
        ", erpUuid=" + erpUuid +
        ", createdAt=" + createdAt +
        ", updatedAt=" + updatedAt +
        ", deletedAt=" + deletedAt +
        ", lastLoginAt=" + lastLoginAt +
        ", verificationToken=" + verificationToken +
        ", verificationTokenExpire=" + verificationTokenExpire +
        ", state=" + state +
        "}";
    }
}
